using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ArchSoft
{
    public partial class SetInfoDrawingForm : Form
    {
        string _scale = "1:1";
        string _revision = "A";
        string _status="In Progressing";
        string _startdate = DateTime.Now.ToString();
        string _enddate = DateTime.Now.ToString();

        public delegate void SetInfo(string scale, string revision, string status, string startdate, string enddate);
        public event SetInfo OnSetInfo;
        public SetInfoDrawingForm()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            _scale = cboScale.Text;
            _revision = cboRevision.Text;
            _status = cboStatus.Text;
            _startdate = dateTimePicker1.Value.ToLongDateString();
            _enddate = dateTimePicker2.Value.ToLongDateString();
            OnSetInfo(_scale, _revision, _status,_startdate,_enddate);
            this.Close();
        }
        public string Scale
        {
            get
            {
                return _scale;
            }
        }
        public string Revision
        {
            get
            {
                return _revision;
            }
        }
        public string Status
        {
            get
            {
                return _status;
            }
        }

        public string StartDate
        {
            get
            {
                return _startdate;
            }
        }

        public string EndDate
        {
            get
            {
                return _enddate;
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void SetInfoDrawingForm_Load(object sender, EventArgs e)
        {
            cboRevision.SelectedIndex = 0;
            cboScale.SelectedIndex = 0;
            cboStatus.SelectedIndex = 0;
        }
    }
}